package com.gxz.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface AccountMapper {

    @Update("update account set money=money + #{money} where name = #{name}")
    public int inMoney(@Param("name") String name,@Param("money") double money);

    @Update("update account set money=money - #{money} where name = #{name}")
    public int outMoney(@Param("name") String name,@Param("money") double money);
}
